package com.hisky.cms.article.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hisky.cms.article.dao.ArticleDao;
import com.hisky.cms.article.vo.Article;

@Service
public class ArticleService {
	@Autowired
	ArticleDao articleDao;

	public int add(Article article) {
		return articleDao.add(article);
	}

	public int addTest(Article article) {
		articleDao.add(article);
		articleDao.add(article);
		throw new RuntimeException("测试用");
	}
}
